package com.design.pattern.flyweight;

/**
 * 小汽车共享类
 */
public class LittleConcreteFlyWeight implements CarFlyWeight {
    /**
     * 汽车颜色
     */
    String color;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void display(Coordinate coordinate) {
        System.out.println("小汽车:颜色="+getColor()+",坐标:"+coordinate.getX()+","+coordinate.getY()+","+coordinate.getZ());
    }
}
